Personal tools

Lua/Shared/Color/Constructor

From JC2-MP Documentation

< Lua‎ | Shared‎ | Color
Jump to: navigation, search

Returns    Color
Prototype    Color(number red, number green, number blue, number alpha)
Description    No description



Returns    Color
Prototype    Color(number red, number green, number blue)
Description    Constructs a color object with the corresponding color values and alpha being 255.



Returns    Color
Prototype    Color(number AARRGGBB)
Description    Constructs a color from an unsigned int value, the format is 0xAARRGGBB.



Returns    Color
Prototype    Color()
Description    Constructs a black color.